import request from '@/utils/request'

// 查询房屋踏查列表
export function listTc(query) {
  return request({
    url: '/duty/tc/list',
    method: 'get',
    params: query
  })
}

// 查询房屋踏查详细
export function getTc(tcId) {
  return request({
    url: '/duty/tc/' + tcId,
    method: 'get'
  })
}

// 新增房屋踏查
export function addTc(data) {
  return request({
    url: '/duty/tc',
    method: 'post',
    data: data
  })
}

// 修改房屋踏查
export function updateTc(data) {
  return request({
    url: '/duty/tc',
    method: 'put',
    data: data
  })
}

// 删除房屋踏查
export function delTc(tcId) {
  return request({
    url: '/duty/tc/' + tcId,
    method: 'delete'
  })
}
